﻿@using Data
@{
    ViewBag.Title = "RankingList";
    int i = 1;
}

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>绿源充电环球跑排行榜</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
    <link href="~/Content/bootstrap/css/bootstrap.css" rel="stylesheet" />
    <link href="~/Content/bootstrap/css/prettify.css" rel="stylesheet" />
    <link href="~/Content/css/flat-ui.css" rel="stylesheet" />
    <link href="~/Content/css/docs.css" rel="stylesheet" />
    <link href="~/Content/css/1.css" rel="stylesheet" />


    <link rel="shortcut icon" href="~/Content/images/favicon.ico" />

    <script src="~/Content/js/jquery-1.8.3.min.js"></script>
    <script src="~/Content/js/jquery-ui-1.10.3.custom.min.js"></script>
    <script src="~/Content/js/jquery.ui.touch-punch.min.js"></script>
    <script src="~/Content/js/bootstrap.min.js"></script>
    <script src="~/Content/js/bootstrap-select.js"></script>
    <script src="~/Content/js/bootstrap-switch.js"></script>
    <script src="~/Content/js/flatui-checkbox.js"></script>
    <script src="~/Content/js/flatui-radio.js"></script>
    <script src="~/Content/js/jquery.tagsinput.js"></script>
    <script src="~/Content/js/jquery.placeholder.js"></script>
    <script src="~/Content/js/typeahead.js"></script>
    <script src="~/Content/bootstrap/js/google-code-prettify/prettify.js"></script>
    <script src="~/Content/js/application.js"></script>
    <script src="~/Content/js/unslider.min.js"></script>
    <script>

        var share_data = { "appid": "wx373a9f490ac4b0c2", "img_url": "http:\/\/115.29.204.6\/Content\/images\/logo\/Logo.png", "img_width": "80", "img_height": "80", "link": window.location.href, "title": "绿源充电环球跑", "desc": "绿源充电环球跑排行榜" };

        if ($('.bdwrap').height() <= 418) {
            $('.bdwrap').addClass('small-height');
        }

        document.addEventListener('WeixinJSBridgeReady', function () {
            WeixinJSBridge.call('hideOptionMenu');
            WeixinJSBridge.call('hideToolbar');

            // 朋友圈
            WeixinJSBridge.on('menu:share:timeline', function (argv) {
                WeixinJSBridge.invoke('shareTimeline', {
                    appid: share_data.appid,
                    img_url: share_data.img_url,
                    img_width: share_data.img_width,
                    img_height: share_data.img_height,
                    link: share_data.link,
                    desc: share_data.desc,
                    title: share_data.title
                }, function () { });
            });

            // 发送给好友
            WeixinJSBridge.on('menu:share:appmessage', function (argv) {
                WeixinJSBridge.invoke('sendAppMessage', {
                    appid: share_data.appid,
                    img_url: share_data.img_url,
                    img_width: share_data.img_width,
                    img_height: share_data.img_height,
                    link: share_data.link,
                    desc: share_data.desc,
                    title: share_data.title
                }, function () { });
            });

            $('#share').click(function () {
                WeixinJSBridge.invoke('shareTimeline', {
                    appid: share_data.appid,
                    img_url: share_data.img_url,
                    img_width: share_data.img_width,
                    img_height: share_data.img_height,
                    link: share_data.link,
                    desc: share_data.desc,
                    title: share_data.title
                }, function () { });
            });
        });

    </script>
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span12">
                <ul class="breadcrumb">
                    <img src="~/Content/images/logo/绿源.png" />
                    <li class="active" style="color: #006400; font-weight: bold; font-size: larger;">
                        绿源充电环球跑
                    </li>
                </ul>
            </div>
        </div>

    </div>

</head>

<body style="background-color: #8cc63e;" background="~/Content/images/background/congruent_pentagon.png">
    <div align="center" class="ranking">
        <div class="breadcrumb" style="background-color: #90EE90; text-align: center; font-weight: bold; color: #006400">
            充电最终参考排名
        </div>
        <table>
            @if ((ViewData["ranking"] as List<User>).Count < 1)
            {
                <tr>
                    <td></td>
                    <td><h5>还没有人参加</h5></td>
                    <td></td>
                </tr>

            }
            else
            {
                foreach (var mo in ViewData["ranking"] as List<User>)
                {
                    <tr>
                        <td></td>
                        <td style="font-weight:bold;">@i .@mo.nickname 充电 @mo.ChargingTimes 次</td>
                        <td></td>
                    </tr>

                    {
                        i++;
                    }
                }
            }
        </table>

    </div>



    <div align="center" width="100%">
        <br />
        <a align="center" width="100%" class="btn btn-primary" style="font-size: larger" href="@Url.Action("Index", "Home")">
            返回活动首页
        </a>
    </div><br />
    <div id="foot">
        ©2014&nbsp;&nbsp;
        <span>
            浙江绿源电动车有限公司
        </span>
    </div>
</body>
</html>

